<!doctype html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>天气预报</title>
</head>
<script>
   function f1 (){
     $.ajax({

        url: './weather.php',
        success:function(data){

        }
     })


   }



</script>
<body>
<h2>获取天气预报</h2>
 
  <iframe width="420" scrolling="no" height="60" frameborder="0" allowtransparency="true" src="http://i.tianqi.com/index.php?c=code&id=12&icon=1&num=5&site=12"></iframe>
  <input type="button"  value="获取天气" onclick="f1()">
</body>
</html>